const js = {
	data() {
		return {
			rules: {
				EnumSysCustomerType: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan[
								"EnumSysCustomerType"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
				EnumStatus: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan[
								"EnumStatus"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
				SysCustomerName: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan[
								"SysCustomerName"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
				Phone: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan[
								"Phone"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
				ImageUrl: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan["ImageUrl"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}]
			}
		};
	},
	computed: {
		EnumStatus() {
			return this.emptyArray(EnumStatus);
		},
		IsDefaultIsYes() {
			return [{
				Value: false,
				Label: '否',
				Color: 'red'
			}, {
				Value: true,
				Label: '是',
				Color: 'green'
			}];
		},
		IsDelIsYes() {
			return [{
				Value: false,
				Label: '否',
				Color: 'red'
			}, {
				Value: true,
				Label: '是',
				Color: 'green'
			}];
		},
		EnumSysCustomerType() {
			return this.emptyArray(EnumSysCustomerType);
		},
		HasWechatH5IsYes() {
			return [{
				Value: false,
				Label: '否',
				Color: 'red'
			}, {
				Value: true,
				Label: '是',
				Color: 'green'
			}];
		},
	},
	methods: {}
}

export default js;
